import request  from '@/utils/request';

import { OPS_URL ,BASE_URL} from '@/config/query';

export async function queryLogin(params) {
  return request(`${OPS_URL}/user/login/owner`, { ...params, clientType: 'web' })
}

export async function queryInfo() {
  return request(`${OPS_URL}/user/permission_none/my`);
}
export async function modifyPwd(params) {
  return request(`${OPS_URL}/user/modify_pwd`, params)
}

//获取单位列表
export async function queryUnitList(){
  return request(`${BASE_URL}/owner_relation/public/my/list`,{},'GET')
}

//获取关联单位权限
export async function queryUnitById(id){
  return request(`${BASE_URL}/owner_relation/token/${id}`,{},'GET')
}
